package com.itheima.stock.service;

import com.itheima.stock.pojo.entity.SysUser;
import com.itheima.stock.vo.req.LoginReqVo;
import com.itheima.stock.vo.resp.LoginRespVo;
import com.itheima.stock.vo.resp.R;

/**
 * 用户service
 *
 * @author songyang
 * @date 2024/12/13
 **/
public interface UserService {

    /**
     * 根据用户名查询用户信息
     *
     * @param userName:用户名
     * @author songyang
     * @date 2024/12/13
     * @return: com.itheima.stock.pojo.entity.SysUser
     */
    SysUser getUserByUserName(String userName);

    R<LoginRespVo> login(LoginReqVo vo);

}
